package com.blog.bean.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;

/**
 * @author 任浩
 * @version 1.0
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("user_examine")
public class UserExamine {

    @TableId(type = IdType.ASSIGN_ID)  //使用雪花算法自动生成id
    private Long id;

    @TableField("examine_id")
    private Long examineId;

    @TableField("my_answer")
    private String myAnswer;

    @TableField("right_answer")
    private String rightAnswer;

    @TableField("is_right")
    private Integer isRight;

    @TableField("use_time")
    private Integer useTime;

    @TableField("user_id")
    private Integer userId;
}
